package com.okami.domain.customer;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author 谭景玉
 */
public interface UserRepository extends CrudRepository<User, Long> {
    @Query(value = "select * from user where user_name like %?1", nativeQuery = true)
    List<User> getAll(String userName);
}
